package org.msb.accentis.data.pojo;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@Entity
@NamedQueries( {
		@NamedQuery(name = "Payee.getAllPayees", query = "SELECT p FROM Payee p ORDER BY p.name"),
		@NamedQuery(name = "Payee.getTransactionDetailsWithPayee", query = "SELECT td FROM TransactionDetail td WHERE td.payee = :payee"),
		@NamedQuery(name = "Payee.getScheduledTransactionsWithPayee", query = "SELECT st FROM ScheduledTransaction st WHERE st.payee = :payee") })
public class Payee extends NamedObject {

	@Lob
	private String address;

	@Basic
	private String phoneNumber;

	@Basic
	private String contact;

	@Basic
	private String emailAddress;

	@Basic
	private String website;

	public String getAddress() {
		return address;
	}

	public void setAddress(String value) {
		address = value;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String value) {
		phoneNumber = value;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String value) {
		contact = value;
	}

	public String getEmailAddress() {
		return emailAddress;
	}

	public void setEmailAddress(String value) {
		emailAddress = value;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String value) {
		website = value;
	}
}
